import React, {Component} from 'react'
import {Text, View, Button} from 'react-native'


class SiftMainView extends Component {
    constructor(props) {
        super(props)
        //初始化的方法

    }


    // static navigationOptions = ({navigation}) => ({
    //     // 展示数据 "`" 不是单引号
    //     title: `Chat with ${navigation.state.params.name}`,
    //
    // });
    render() {

        return (
            <View>

                <View>
                    <Text style={{backgroundColor: 'red', padding: 8}}>{'我是主页面'}</Text>

                    <Button
                        onPress={() => this.props.navigations('Profile', {
                            name: '我是从上一个页面穿过来的值',
                            user: '第二个参数',

                        })}
                        title="下一级页面"
                        accessibilityLabel="See an informative alert"
                    />
                </View>
            </View>
        )


    }


}

module.exports = SiftMainView;